package com.springCloud.feign.service;

import com.springCloud.feign.service.impl.HelloServiceImpl;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Title: HelloService<br>
 * Description: HelloService<br>
 * CreateDate:2021年02月08日 15:57
 *
 * @author jackie.scl
 */
@FeignClient(value = "springCloud-feign-test", fallback = HelloServiceImpl.class /*fallbackFactory = HelloServiceFallbackFactory.class*/)
public interface HelloService {

    /**
     * 示例
     *
     * @param name
     * @return
     */
    @RequestMapping("/hello")
    String sayHello(@RequestParam("name") String name);
}
